package com.byxy.muxinnetty.enums;

import lombok.AllArgsConstructor;

/**
 *  忽略或者通过 好友请求的枚举
 */
@AllArgsConstructor
public enum OperatorFriendRequestTypeEnum {

    IGNORE(0,"忽略"),
    PASS(1,"通过");

    public final Integer type;
    public final String msg;

    public Integer getType() {
        return type;
    }

    public static String getMsgByKey(Integer type) {
        for (OperatorFriendRequestTypeEnum operatorFriendRequestTypeEnum : OperatorFriendRequestTypeEnum.values()) {
            if (operatorFriendRequestTypeEnum.getType() == type) {
                return operatorFriendRequestTypeEnum.msg;
            }
        }
        return null;
    }
}
